﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;


namespace YYPostProcessing
{
    static class ResourceAssetFactory
    {
#if YY_POSTFX_DEBUG_MENUS
        [MenuItem("YYTools/Post-processing/Create Resources Asset")]
#endif
        static void CreateAsset()
        {
            var asset = ScriptableObject.CreateInstance<YYPostProcessResources>();
            AssetDatabase.CreateAsset(asset, "Assets/YYPostProcess/PostProcessResources.asset");
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
        }
    }
}
